//
//  GameScene.hpp
//  dot
//
//  Created by zz on 2019/6/18.
//

#ifndef GameScene_hpp
#define GameScene_hpp

#include <stdio.h>
#include "cocos2d.h"
#include "HelloWorldScene.h"
#include "Player.hpp"
#include "PointManager.hpp"
#include "RankManager.hpp"
#include "GameOver.hpp"
using namespace cocos2d;

class GameScene : public Layer{
    
public:
    static Scene * createScene();
    bool init();
    CREATE_FUNC(GameScene);
    void back();//返回主页
    bool onTouchBegan(Touch*t,Event*e);
  
    

private:
    Size visibleSize;
    Player *player;
    CCLabelTTF* scoreLabel;
private:
    PointManager * pmanager;
    
private:
    float pr;
    int score;
    int canspawn;
    GPoint* oldPoint;

};



#endif /* GameScene_hpp */
